# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=s-tui
pkgver=1.1.4
pkgrel=2
pkgdesc="Terminal-based CPU stress and monitoring utility"
url="https://github.com/amanusk/s-tui"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="py3-setuptools"
depends="python3 py3-urwid py3-psutil stress-ng"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/amanusk/s-tui/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir" python3 s_tui/tests/test_util_source.py
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
20adfb27bae6467650a901211f4b58d0351d756a5b9465922953feb3711969c6d647782f99479475499b4658ef65da6283ad4e55ce72839d36c08f8a7f244322  s-tui-1.1.4.tar.gz
"
